/*
 * lcd.c
 *
 *  Created on: 29-03-2011
 *      Author: zeus
 */

#include "FreeRTOS.h"
#include "portmacro.h"
#include "portlcd.h"

void vTaskLCD ( void *pvParameters )
{
  const portTickType xDelay = 500 / portTICK_RATE_MS;
  portCHAR xLCDval = 0;

  for(;;)
    {
      LCD_bargraph ( xLCDval++, 1 );
      if ( xLCDval > 100 )
        {
          xLCDval = 0;
          LCD_cls();
        }
      vTaskDelay ( xDelay );
    }
}
